src = $(wildcard *.cpp)
target = $(patsubst %.cpp,%,$(src))

ALL:$(target)

%:%.cpp
	g++ -O2 -std=c++14 $< -o $@ -lpthread -L/usr/local/lib -lboost_system -DBOOST_ERROR_CODE_HEADER_ONLY

clean:
	rm -rf $(target)
.PHONY:clean ALL
